import { ElLoading } from "element-plus"

const Loading: { load: any; show: () => void; close: () => void } = {
	load: null,
	show() {
		this.load = ElLoading.service({
			fullscreen: true,
			text: "正在生成..."
		}) as any
	},
	close() {
		this.load?.close()
	}
}

export default Loading
